<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/página2.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>:.GOF Cadastro.:</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<link href="/public/stylesheets/principal.css" rel="stylesheet" type="text/css" />
<script src="/public/javascripts/jquery-1.8.2.min.js" type="text/javascript"></script>
<script type="text/javascript">

function usuario(nome,tipo){$('#conectado').append("<table><tr><td>Usuário:</td><td>"+nome+"</td></tr><tr><td>Tipo:</td><td>"+tipo+"</td></tr></table><table border=0><tr><td><form action= @{Application.index()} method = GET><input type=submit value=logout /></form></td><td><form action = @{Application.redefinirSenha()} method = GET><input type=submit value=Redefinir&nbsp;Senha /></form></td></tr></table>");}

function teste_adm(tipo)
{
	if (tipo != "Administrador")
	{
	$("#adm").css("visibility","hidden");
	}
}

$(document).ready(function() { 
  teste_adm("${Utipo}");
  
<!-- Sistema para o menu -->
$('#clientes a').click(function() { 
     $('#subcliente', $(this).parent()).slideToggle('slow', function(){$(this).parent().toggleClass('aberto');}  );   });

$('#estoque a').click(function() { 
	 $('#subestoque', $(this).parent()).slideToggle('slow', function(){$(this).parent().toggleClass('aberto');}  );   });

$('#agenda a').click(function() { 
	$('#subagenda', $(this).parent()).slideToggle('slow', function(){$(this).parent().toggleClass('aberto');}  );   });

$('#adm a').click(function() { 
    $('#subadm', $(this).parent()).slideToggle('slow', function(){$(this).parent().toggleClass('aberto');}  );   });
<!-- Fim do Sistema para o menu -->
});


</script>
<!-- InstanceEndEditable -->
</head>

<body>
<div class="main">
  <div id="main_top"></div>
  <div id="main_menu">
   <div id="conectado"><script>usuario("${Unome}","${Utipo}")</script></div>
    <ul class="menu" >
      <li><a class="item" href="@{Application.admin()}" title="Home">Home</a>
      <li id="clientes"><a class="item" href="#" title="Clientes">Clientes</a>
        <ul class="submenu" id="subcliente">
          <li><a class="subitem"  href="@{Application.cadastro()}" title="cadastro">Cadastro de cliente</a></li>
          <li><a class="subitem" href="@{Application.busca()}"  title="busca">Pesquisar Cliente</a></li>
        </ul>
      </li>
      <li id="estoque"><a class="item" href="#" title="Estoque">Estoque</a>
        <ul class="submenu" id="subestoque">
          <li><a class="subitem" href="@{Application.estoque()}" title="cadastro">Controle de Materiais</a></li>
          
        </ul>
      </li>
      <li id="agenda"><a class="item" href="#" title="Agenda">Agenda</a>
        <ul class="submenu" id="subagenda">
          <li><a class="subitem" href="@{Application.servico()}" title="cadastro">Cadastro de Evento</a></li>
          <li><a class="subitem" href="@{Application.agenda()}" title="consultar">Consultar Agenda</a></li>
        </ul>
      </li>
      <li id="adm"><a class="item" href="#" title="usuario">Administração</a>
        <ul class="submenu" id="subadm">
          <li><a class="subitem" href="@{Application.gerenciar()}" title="gerenciar">Gerenciar Usuários</a></li>
        </ul>
      </li>
    </ul>
  </div>
  <div id="main_conteudo"><!-- InstanceBeginEditable name="conteudo" -->
    <div id="formulario">
      <h1><a>Dados Pessoais</a></h1>
      <hr id="linha"/>
      <form action="@{Application.cadastroCliente()}" title="dados pessoais" method="GET">
        <table width="200" border="0">
          <tr >
            <td class="dados">Nome:</td>
            <td><input type="text" name="nome" size="75"/></td>
          </tr>
          <tr>
            <td class="dados">Endereço:</td>
            <td><input type="text" name="endereco" size="75"/></td>
          </tr>
          
          <tr>
            <td class="dados">RG:</td>
            <td class="dados"><input type="text" name="rg" size="10"/>
              
          </tr>
          
          <tr>
            <td class="dados">Tel:</td>
            <td class="dados"><input type="text" name="tel" size="10" />
              Cel:
            <input type="text" name="cel" size="10"/></td>
          </tr>
          <tr>
          <td class="dados">Email:</td>
          <td><input type="email" name="email" size="50" /></td>
          
          </tr>
        </table>
        
           <input type="submit" value="cadastrar" style="margin-left:250px" />
          
      </form>
      <hr id="linha"/>
    </div>
    </form>
    <!-- InstanceEndEditable --></div>
  <div id="main_aditional"><!-- InstanceBeginEditable name="adicional" --><!-- InstanceEndEditable --></div>
</div>
#{if flash.error}
<script>alert("${flash.error}")</script>
#{/if}
</body>
<!-- InstanceEnd --></html>
